<%@ page language="java" contentType="text/html; charset=UTF-8" import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/color.css">
<script type="text/javascript" src="/xasj/easyui/jquery.min.js"></script>
<script type="text/javascript" src="/xasj/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/xasj/js/resourse/addipres.js"></script>
<script type="text/javascript">

</script>
</head>
<body >
	<div id="dnorth" >
	<div id="devres" style="padding:3px"class="easyui-panel" title="IP资源类型" "
	data-options="iconCls:'icon-save',collapsible:true,minimizable:true,closable:true">
	<form id="submitipres">
	<table>
	<tr>
	<td>添加IP资源：</td>
	<td><select id="ipsort" class="easyui-combobox" panelHeight="auto" style="width:100px">
	<option value="0">请选择</option>
	<%List<Devres> list=(List<Devres>)request.getAttribute("dlist");
	List<Devres> ipdlist=(List<Devres>)request.getAttribute("ipdlist");
	List<Dajuxiang> listdjx=(List<Dajuxiang>)request.getAttribute("dajuxiang");
	for(Devres dv:list){%>
		<option value="<%=dv.getDevresId()%>"><%=dv.getDevresname()%></option>
	<%}%>						
	</select> IP类型:
	<select id="iprestype" class="easyui-combobox" panelHeight="auto" style="width:100px">
	<option value="0">请选择</option>
	<option value="1">私网地址</option>	
	<option value="2">公网地址</option>						
	</select></td>
	</tr>
	<tr>
	<td>汇接：</td>
	<td><select id="dajuxiang" class="easyui-combobox" panelHeight="auto" style="width:100px">
	<option value="0">请选择</option>
	<%for(Dajuxiang djx:listdjx){%>
		<option value="<%=djx.getDjxId()%>"><%=djx.getDjxname()%></option>
	<%}%>						
	</select>
	
	分配对象：
	<select id="ipdbelong" class="easyui-combobox" panelHeight="auto" style="width:100px">
	<option value="0">请选择</option>
	<%for(Devres dv:ipdlist){%>
		<option value="<%=dv.getDevresId()%>"><%=dv.getDevresname()%></option>
	<%}%>						
	</select>
	</td>
	</tr>
		<tr>
	<td>地址段网关:</td>
	<td>
	<input id="ipgateway" class="easyui-textbox easyui-validatebox" data-options="required:true,validType:'ip',missingMessage:'网关不能为空'" style="width:100px">
	管理VLAN:<input id="advlan" class="easyui-numberbox easyui-textbox" data-options="required:true,validType:'digits'" style="width:100px">
	</td>
	</tr>
	<tr>
	<td>地址段起始:</td>
	<td>
	<input id="ipstart" class="easyui-textbox easyui-validatebox" data-options="required:true,validType:'ip',missingMessage:'地址段不能为空'" style="width:100px">
	地址终止:
	<input id="ipend" class="easyui-textbox easyui-validatebox" data-options="required:true,validType:'ip',missingMessage:'地址段不能为空'" style="width:100px">
	</td>
	</tr>
	<tr>
	<td>划分类型:</td>
	<td>
	<select id="iptype" class="easyui-combobox" panelHeight="auto" style="width:100px">
	<option value="0">请选择</option>
	<option value="A">A</option>
	<option value="B">B</option>
	<option value="C">C</option>
	<option value="D">D</option>
	</select>
	
	使用范围:
	<select id="userange" class="easyui-combobox" panelHeight="auto" style="width:100px">
	<option value="0">请选择</option>
	<option value="FTTX">FTTX</option>
	<option value="FTTH">FTTH</option>
	<option value="FTTB">FTTB</option>
	<option value="FTTC">FTTC</option>
	</select>
	</td>
	</tr>
	<tr>
	<td>备注:</td><td><input id="describ" name="describ"  data-options="multiline:true" style="height:40px;width:300px"></td>
	</tr>
	<tr>
	<td>
	</td>
	<td>
	<a href="#" id="addip" class="easyui-linkbutton" iconCls="icon-search">下一步</a>
	</td>
	</tr>
	</table>
	</form>
	</div>
	</div>
	<div id="searchres" style="padding:3px"class="easyui-panel" title="可用地址"
	data-options="footer:'#ft',iconCls:'icon-save',collapsible:true,minimizable:true,closable:true">
	<table id="ipdeploy">
	</table>
	</div>
	<div id="ft" >
    	<a  id="subipres" type="button" class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width:20%">添加</a>
    	</div> 
	<div id="dig">
	</div>
</body>
</html>